package org.m8.auth.model.qentity;

import com.querydsl.core.types.Path;
import com.querydsl.core.types.PathMetadata;
import com.querydsl.core.types.dsl.DateTimePath;
import com.querydsl.core.types.dsl.StringPath;
import com.querydsl.sql.ColumnMetadata;
import com.querydsl.sql.RelationalPathBase;

import javax.annotation.processing.Generated;
import java.sql.Types;

import static com.querydsl.core.types.PathMetadataFactory.forVariable;


/**
 * QM8Oauth2RefreshToken is a Querydsl query type for QM8Oauth2RefreshToken
 */
@Generated("com.querydsl.sql.codegen.MetaDataSerializer")
public class QOauth2RefreshToken extends RelationalPathBase<QOauth2RefreshToken> {

    private static final long serialVersionUID = -1329033257;

    public static final QOauth2RefreshToken m8Oauth2RefreshToken = new QOauth2RefreshToken("m8_oauth2_refresh_token");

    public final DateTimePath<java.util.Date> createTime = createDateTime("createTime", java.util.Date.class);

    public final StringPath creator = createString("creator");

    public final DateTimePath<java.util.Date> expiresTime = createDateTime("expiresTime", java.util.Date.class);

    public final StringPath id = createString("id");

    public final StringPath refreshToken = createString("refreshToken");

    public final StringPath updater = createString("updater");

    public final DateTimePath<java.util.Date> updateTime = createDateTime("updateTime", java.util.Date.class);

    public final StringPath userId = createString("userId");

    public final com.querydsl.sql.PrimaryKey<QOauth2RefreshToken> primary = createPrimaryKey(id);

    public QOauth2RefreshToken(String variable) {
        super(QOauth2RefreshToken.class, forVariable(variable), "null", "m8_oauth2_refresh_token");
        addMetadata();
    }

    public QOauth2RefreshToken(String variable, String schema, String table) {
        super(QOauth2RefreshToken.class, forVariable(variable), schema, table);
        addMetadata();
    }

    public QOauth2RefreshToken(String variable, String schema) {
        super(QOauth2RefreshToken.class, forVariable(variable), schema, "m8_oauth2_refresh_token");
        addMetadata();
    }

    public QOauth2RefreshToken(Path<? extends QOauth2RefreshToken> path) {
        super(path.getType(), path.getMetadata(), "null", "m8_oauth2_refresh_token");
        addMetadata();
    }

    public QOauth2RefreshToken(PathMetadata metadata) {
        super(QOauth2RefreshToken.class, metadata, "null", "m8_oauth2_refresh_token");
        addMetadata();
    }

    public void addMetadata() {
        addMetadata(createTime, ColumnMetadata.named("create_time").withIndex(6).ofType(Types.TIMESTAMP).withSize(19).notNull());
        addMetadata(creator, ColumnMetadata.named("creator").withIndex(5).ofType(Types.VARCHAR).withSize(64));
        addMetadata(expiresTime, ColumnMetadata.named("expires_time").withIndex(4).ofType(Types.TIMESTAMP).withSize(19).notNull());
        addMetadata(id, ColumnMetadata.named("id").withIndex(1).ofType(Types.VARCHAR).withSize(32).notNull());
        addMetadata(refreshToken, ColumnMetadata.named("refresh_token").withIndex(3).ofType(Types.VARCHAR).withSize(32).notNull());
        addMetadata(updater, ColumnMetadata.named("updater").withIndex(7).ofType(Types.VARCHAR).withSize(64));
        addMetadata(updateTime, ColumnMetadata.named("update_time").withIndex(8).ofType(Types.TIMESTAMP).withSize(19).notNull());
        addMetadata(userId, ColumnMetadata.named("user_id").withIndex(2).ofType(Types.VARCHAR).withSize(32).notNull());
    }

}

